package java101;

public class InClass2 {

	public static void main(String[] args) {

//				for (int q=0, c=0; q<=4; q++)
//					for (int d=0; d<= (100-25*q)/10; d++)
//						for (int n=0; n<=(100-25*q-10*d)/5; n++)	{
//							int p = 100-25*q-10*d-5*n;
//							System.out.format("%3d:%dq,%dd,%dn,%dp,%dp/n",++c,q,d,n,p);
//						}
//	}
		

		//		for (int i = 0, fib[] = new int[30]; i< fib.length; i++)
//			System.out.println(fib[i] = (i<2) ? i : fib[i-1] + fib [i-2]);


		//for (int w = 1; w < 7; w++)
//	for (int p = 1; p <100; p++)
//	{
//		int c = 100-w-p;
//		int v=15*w+p+c/4;
//		if (c%4==0 && v==100)
//			System.out.println(w + " cows, " + p + " pigs, " + c + " chickens.");
//			}
	
//		int fib[] = new int [30];
//		for (int i=0; i<30; i++)
//			fib[i] = (i<2) ? i : fib[i-2] + fib[i-1];
		
//		for (int j : fib) { 	//for each syntax
//			System.out.println(j);
			
//		}
		
		/* int i = 0;
		while (i<4) {
			System.out.println(i);
			i++;
		}
		i=0;
		do {
			System.out.println(i);
			i++;
		} while (i<4);
		
		/* switch case*/
		
		i = 3;
		switch (i){
		case 1:
			System.out.println("you chose 1");
		case 2 :
			System.out.println("you chose 2");
			default:
				System.out.println("default");
				break;
				
				/* public enum FruitType {APPLE, ORANGE, BANANA};*/
		}
		
	
	}
}
